package com.zxy.supplier_system.server.entity

import jakarta.persistence.*

@Entity
class SystemService {

    @Id
    lateinit var id: String

    lateinit var name: String

    @OneToOne(fetch = FetchType.LAZY, optional = false, cascade = [CascadeType.ALL], orphanRemoval = true)
    @PrimaryKeyJoinColumn
    lateinit var setting: SystemServiceSetting

}